package com.itheima.a03dom4jdemo;

public class User {
    private String id;
    private String username;
    private String password;
    private String personid;
    private String phoneid;
    private boolean flag;


    public User() {
    }

    public User(String id, String username, String password, String personid, String phoneid, boolean flag) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.personid = personid;
        this.phoneid = phoneid;
        this.flag = flag;
    }

    /**
     * 获取
     * @return id
     */
    public String getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 获取
     * @return username
     */
    public String getUsername() {
        return username;
    }

    /**
     * 设置
     * @param username
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * 获取
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设置
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 获取
     * @return personid
     */
    public String getPersonid() {
        return personid;
    }

    /**
     * 设置
     * @param personid
     */
    public void setPersonid(String personid) {
        this.personid = personid;
    }

    /**
     * 获取
     * @return phoneid
     */
    public String getPhoneid() {
        return phoneid;
    }

    /**
     * 设置
     * @param phoneid
     */
    public void setPhoneid(String phoneid) {
        this.phoneid = phoneid;
    }

    /**
     * 获取
     * @return flag
     */
    public boolean isFlag() {
        return flag;
    }

    /**
     * 设置
     * @param flag
     */
    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public String toString() {
        return "User{id = " + id + ", username = " + username + ", password = " + password + ", personid = " + personid + ", phoneid = " + phoneid + ", flag = " + flag + "}";
    }
}
